package ooday04;

public class AnonInnerClassDemo {
    public static void main(String[] args) {
    Inter o1 = new Inter() {};

    Inter o2 = new Inter() {};
        int num =5;
        num=6;

        InterInter o3 = new InterInter() {
            public void show(){
                System.out.println("showshow");
                  //num = 6; //编译错误，匿名内部类中不能修改外面局部变量的值
                //                           //因为该变量在此处会默认为final的
            }
        };
    }
}

interface InterInter{
    void show();
}
interface Inter{

}